MapWriteKeyValuesRepo

class MapWriteKeyValuesRepo<Key, Value>(map: MutableMap<Key, MutableList<Value>> = mutableMapOf()) : WriteKeyValuesRepo<Key, Value>

Constructors

Link copied to clipboard
fun <Key, Value> MapWriteKeyValuesRepo(map: MutableMap<Key, MutableList<Value>> = mutableMapOf())

Functions

Link copied to clipboard
open suspend override fun add(toAdd: Map<Key, List<Value>>)
Link copied to clipboard
open suspend override fun clear(k: Key)
Link copied to clipboard
open suspend override fun clearWithValue(v: Value)
Link copied to clipboard
open suspend override fun remove(toRemove: Map<Key, List<Value>>)
Link copied to clipboard
open suspend fun set(toSet: Map<Key, List<Value>>)

Properties

Link copied to clipboard
open override val onDataCleared: Flow<Key>
Link copied to clipboard
open override val onNewValue: Flow<Pair<Key, Value>>
Link copied to clipboard
open override val onValueRemoved: Flow<Pair<Key, Value>>